class Student{
    private String name;
    private int age;
    public  static String classroom;
    //构造方法
    public Student(String name, int age) {
        System.out.println("这是构造方法");

    }

    //构造代码块，实例代码块
    {
        System.out.println("这是构造代码块");

    }
    static{
        classroom="1770";
        System.out.println("这是静态代码块");
    }


}
public class Test{
    public void fun(){
        System.out.println("哈哈");
    }
    public static void main(String[] args) {
       fun();

    }
}
